﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BrsdServer
{
    public partial class sidebar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if ((String)Session["nameSession"]=="" ||(String)Session["pwdSession"]==""
                || Session["nameSession"] == null || Session["pwdSession"]==null)
            {
                Response.Redirect("index.aspx");
            }
        }

        //protected void linkExit_Click(object sender, EventArgs e)
        //{
        //    String strScript="   <script type='text/javascript'>"+
        //"var exitFlag=confirm('您确认要安全退出到登录页面吗?');"+
        //"if (exitFlag) { window.parent.location='index.aspx';}</script>";
        //    ClientScript.RegisterStartupScript(this.GetType(), "xx", strScript);
        //    Session["nameSession"] = "";
        //    Session["pwdSession"] = "";
        //}
    }
}
